<?php
/**
 *
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * For full copyright and license information, please see the LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       app.View.Layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
 */

$cakeDescription = __d('cake_dev', 'CakePHP: the rapid development php framework');
?>
<!DOCTYPE html>
<html lang="en">
<head>    
	<?php echo $this->Html->charset(''); ?>
	<title>
		<?php echo $cakeDescription ?>:
		<?php echo $title_for_layout; ?>
	</title>
	<?php
		echo $this->Html->meta('icon');
		
		echo $this->Html->css('cake.login');		
	    echo $this->Html->css('redmond/jquery-ui-1.8.13.custom.css');

		echo $this->fetch('meta');
		echo $this->fetch('css');
		echo $this->fetch('script');
		echo $this->Html->script('jquery-1.7.2.min');
		echo $this->Html->script('jquery-ui-1.8.21.custom.min');
		
	?>		
</head>
<body>
     <div class="ui-state-error" style="display:none"><?php echo $this->Session->flash(); ?></div>	
	<div id="topo">	   
		<div id="content">
			<div style="float:right;width:700px;">
				<div class="content-inner">
					<div style="margin-top:15px"><h2>Efetuar Login</h2></div>
				</div>	
				<?php
					echo $this->Form->create('User');
				?>
				<div class="content-inner">
					<div><?php 
				    	echo $this->Form->label('username', 'E-mail', array('class'=>'label'));
						echo $this->Form->input('username',array('label'=>false,'class'=>'input')); ?></div>
				</div>	
				<div class="content-inner">
					<div><?php 
						 echo $this->Form->label('password', 'Senha', array('class'=>'label'));
						 echo $this->Form->input('password',array('label'=>false,'class'=>'input')); ?></div>
				</div>		
				<div class="content-inner">
					<div><?php 
						$optionslogin = array(
							'label' => 'Entrar',
						    'value' => 'Entrar',
						    'type' => 'submit',
						    'class' => 'botao',
						    'id' => 'botao');						
						echo $this->Form->end($optionslogin); ?></div>
				</div>	
				<div class="content-inner">
					<div style="color:#fff;margin-top:10px">	
					<?php echo $this->Html->link(__('Cadastre-se'), array('controller'=>'users','action' => 'addnewuser')); ?>
					</div>
				</div>	
			</div>
		</div>
	</div>
	<div id="container" class="ui-widget">
		<div id="logo">
			<img src="../img/logo.png" style="margin-top:100px;width:400px;"/>
		</div> 		
	</div>
	<script type="text/javascript">
	    $(document).ready(function(){ 	    	 
	        $("#menuacoes").menu();
	        $("#botao").button();
	        $("#botaoAdd").button();
	    });
	</script>
</body>
</html>
